package km2;

public class StringHandlerDemo {
    public static void main(String[] args) {
        useStringHandler(new StringHandler() {
            @Override
            public void printMessage(String xulei) {
                System.out.println(xulei+"牛");
            }
        });
        useStringHandler((String xulei)->{
            System.out.println(xulei+"帅");
        } );
    }
    public static void useStringHandler(StringHandler stringHandler){
        stringHandler.printMessage("徐磊");
    }
}
